package com.lam.dormitory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author lam
 * @since 2020-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Quartz对象", description = "")
public class Quartz implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "quartz_id", type = IdType.INPUT)
    private Long quartzId;  //id  主键
    private String jobName;  //任务名称
    private String jobGroup;  //任务分组
    private String cronExpression;  //corn表达式
    private String invokeParam;//需要传递的参数
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )
    private Date startTime;  //任务开始时间
    private Integer status;//状态
    private String remark;//备注


}
